package com.pubinfo.passbook.data.controller.bill;

import com.pubinfo.passbook.common.model.vo.base.JsonResult;
import com.pubinfo.passbook.common.service.master.TRuleAuditService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "audit/manager")
@Api(tags = "待办事项管理")
public class AuditController {

    @Autowired
    TRuleAuditService tRuleAuditService;

    @PostMapping("deleteAudit")
    @ApiOperation("删除待办")
    public JsonResult<Boolean> deleteAudit(String otherSystemMainId) {
        return JsonResult.success(tRuleAuditService.deleteAudit(otherSystemMainId));
    }
}
